package com.rizzo.infrastructure.exception;

/**
 */
public class RizzoException extends RuntimeException {

    private Object[] args;

    private int code = 0;

    public RizzoException(int code, String message) {
        super(message);
        this.code = code;
    }

    public RizzoException(int code, Throwable cause, Object[] args) {
        super(cause);
        this.args = args;
        this.code = code;
    }

    public RizzoException(int code, String message, Object[] args) {
        super(message);
        this.args = args;
        this.code = code;
    }

    public RizzoException(int code, String message, Object[] args, Throwable cause) {
        super(message, cause);
        this.args = args;
        this.code = code;
    }

    public Object[] getArgs() {
        return args;
    }

    public int getCode() {
        return code;
    }
}
